package com.xuzao.developer.tools.base;

import java.util.List;

/**
 * 基础service
 *
 * @author lulei
 * @version v1.0
 * @date 2018年2月22日 下午4:42:17
 */
public interface BaseService<T> {

    T selectOne(T entity);

    T selectById(Object id);

    List<T> selectList(T entity);

    List<T> selectListAll();

    Long selectCount(T entity);

    Integer insert(T entity);

    Integer insertSelective(T entity);

    Integer delete(T entity);

    Integer deleteById(Object id);

    Integer updateById(T entity);

    Integer updateSelectiveById(T entity);

    List<T> selectByExample(Object example);

    Integer selectCountByExample(Object example);

    Integer updateByExampleSelective(T entity, Object example);

}
